package com.zkthink.clh.order.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 下单请求对象
 *
 * @author JustArgo 2020/5/12 10:06
 * @return
 */
@Data
public class ChlPlaceOrderDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id", hidden = true)
    private Long mid;
    /**
     * 订单金额
     */
    @ApiModelProperty(value = "订单金额")
    @NotNull(message = "订单金额不能为空")
    @TableField("order_sum")
    @Excel(name = "订单金额")
    private BigDecimal orderSum;
    /**
     * 付款金额
     */
    @ApiModelProperty("付款金额")
    private BigDecimal cash;
    /**
     * 消费金额
     */
    @ApiModelProperty(value = "消费金额")
    @TableField("coupons")
    private BigDecimal coupons;
    @ApiModelProperty("描述")
    private String notes;
    @ApiModelProperty(value = "客户端ip", hidden = true)
    private String ip;
    /**
     * 1-微信APP 2-支付宝 3-余额
     */
    @ApiModelProperty("支付渠道 1-微信APP 2-支付宝 3-余额")
    private Integer payChannel;
    /**
     * 1-购买vip 2-充值，3-入住费 ,4=购买服务
     */
    @ApiModelProperty("订单类型 1-购买vip 2-购买消费金，3-入住费 ,4=购买服务,5=充值")
    private Integer orderType;

    @ApiModelProperty("购买个数")
    private BigDecimal loveNum = new BigDecimal(1);
   @ApiModelProperty("店铺id")
    private Long storeId;

    @ApiModelProperty(value = "vip套餐id", hidden = true)
    private String vipId;
    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    @TableField("projectid")
    private Long projectid;
    /**
     *车牌号
     */
    @ApiModelProperty(value = "车牌号")
    @TableField("licensePlate")
    private String licensePlate;
    private String quit_url;
}
